package com.bbm.communitysystem.domain.dto.role;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author bbm
 * @since 2025-02-13
 */
@Data
@Schema(description = "权限实体类")
public class PerDto {

    @Schema(description = "权限唯一标识")
    private Integer id;

    /**
     * 权限名称
     */
    @Schema(description = "权限名称", example = "用户管理权限")
    private String name;

    /**
     * 权限路径
     */
    @Schema(description = "接口路径", example = "/api/users/**")
    private String path;

    /**
     * 权限模式
     */
    @Schema(description = "访问方式", example = "GET,POST")
    private String mod;


    @Schema(description = "权限描述")
    private String description;

    /**
     * 权限更新者
     */
    @Schema(description = "最后修改人", example = "admin")
    private String user;

    /**
     * 权限状态 0 正常 1 禁用
     */
    @Schema(description = "状态标识", allowableValues = {"0", "1"}, defaultValue = "0")
    private Integer status;
}